package com.raising.modules.cms.entity;

import com.raising.framework.entity.BaseEntity;

/**
* 文章表
* @author luxy
* @createTime 2018-01-20 19:12:39
*/
public class CmsArticle extends BaseEntity<CmsArticle>{

    private static final long serialVersionUID = 1L;

    /** 栏目编号 */
    private String categoryId;
    /** 栏目名称 */
    private String categoryNm;
    /** 标题 */
    private String title;
    /** 文章内容HTML */
    private String content;
    /** 文章纯文本内容 */
    private String contentText;
    /** 文章链接 */
    private String link;
    /** 文章图片 */
    private String image;
    /** 点击数 */
    private String hits;
    /** 关键字 */
    private String keywords;
    /** 描述、摘要 */
    private String description;
    private String orgNm;
    //栏目分类
    private CmsCategory cmsCategory;


    public CmsArticle() {
        super();
    }
    public CmsArticle(String id){
        super(id);
    }

    public String getCategoryId(){
        return categoryId;
    }

    public void setCategoryId(String categoryId){
        this.categoryId = categoryId;
    }

    public String getTitle(){
        return title;
    }

    public void setTitle(String title){
        this.title = title;
    }

    public String getLink(){
        return link;
    }

    public void setLink(String link){
        this.link = link;
    }

    public String getImage(){
        return image;
    }

    public void setImage(String image){
        this.image = image;
    }

    public String getHits(){
        return hits;
    }

    public void setHits(String hits){
        this.hits = hits;
    }

    public String getKeywords(){
        return keywords;
    }

    public void setKeywords(String keywords){
        this.keywords = keywords;
    }

    public String getDescription(){
        return description;
    }

    public void setDescription(String description){
        this.description = description;
    }

    @Override
    public String getOrgNm() {
        return orgNm;
    }

    @Override
    public void setOrgNm(String orgNm) {
        this.orgNm = orgNm;
    }

    public String getCategoryNm() {
        return categoryNm;
    }

    public void setCategoryNm(String categoryNm) {
        this.categoryNm = categoryNm;
    }

    public CmsCategory getCmsCategory() {
        return cmsCategory;
    }

    public void setCmsCategory(CmsCategory cmsCategory) {
        this.cmsCategory = cmsCategory;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContentText() {
        return contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }

    @Override
    public String toString() {
        return "CmsArticle{" +
                "categoryId='" + categoryId + '\'' +
                ", categoryNm='" + categoryNm + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", contentText='" + contentText + '\'' +
                ", link='" + link + '\'' +
                ", image='" + image + '\'' +
                ", hits='" + hits + '\'' +
                ", keywords='" + keywords + '\'' +
                ", description='" + description + '\'' +
                ", orgNm='" + orgNm + '\'' +
                ", cmsCategory=" + cmsCategory +
                ", id='" + id + '\'' +
                '}';
    }
}
